package com.aceitunaproject.server.initializer;

import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;

import com.aceitunaproject.server.AceitunaContext;
import com.aceitunaproject.server.equipment.Equipment;
import com.aceitunaproject.server.installation.InstallationType;
import com.aceitunaproject.server.installation.InstallationTypeLoader;
import com.aceitunaproject.server.materialgoods.MaterialGood;
import com.aceitunaproject.server.science.ScientificAdvance;

public class TestInstallationTypeLoader implements InstallationTypeLoader {

	@Override
	public Map<String, InstallationType> getInstallationTypes() {
		HashMap<String, InstallationType> map = new HashMap<String, InstallationType>();

		List<Equipment> requiredEquipment = new LinkedList<Equipment>();
		requiredEquipment.add(AceitunaContext.getEquipmentManager()
				.getAllEquipments().get("InstallationBuildingEquipment"));
		Map<MaterialGood,Long> requiredMaterialGoods = new HashMap<MaterialGood,Long>();
		requiredMaterialGoods.put(AceitunaContext.getMaterialGoodsManager()
				.getAllMaterialGoods().get("InstallationBuildingMaterial"),Long.valueOf(2));

		List<ScientificAdvance> requiredScientificAdvances = new LinkedList<ScientificAdvance>();
		
		map.put("DefaultInstallationType", new InstallationType(
				requiredEquipment, requiredMaterialGoods,
				"DefaultInstallationType", null, requiredScientificAdvances , 0, 0));
		map.get("DefaultInstallationType").setManTicks(4);
		return map;

	}

}
